﻿using System;

class CompareCharArrays
{
    static void Main()
    {   
        Console.WriteLine("Enter the length of the two char arrays to compare:");
        int lengthOfArrays = int.Parse(Console.ReadLine());
        char[] firstArray = new char[lengthOfArrays];
        char[] secondArray = new char[lengthOfArrays];
        for (int indexOne = 0; indexOne < lengthOfArrays; indexOne++)
        {
            Console.WriteLine("Enter element for the first array:");
            firstArray[indexOne] = char.Parse(Console.ReadLine());
        }
        for (int indexTwo = 0; indexTwo < lengthOfArrays; indexTwo++)
        {
            Console.WriteLine("Enter element for the second array:");
            secondArray[indexTwo] = char.Parse(Console.ReadLine());
        }
        for (int index = 0; index < lengthOfArrays; index++)
        {
            if (firstArray[index] == secondArray[index])
            {
                Console.WriteLine("On index {0}: {1}", index, true);
            }
            else
            {
                Console.WriteLine("On index {0}: {1}", index, false);
            }
        }
    }
}

